export const Layout = () => import("@/layout/index.vue");
import PermissionType from "@/utils/PermissionType";

const sysRoutes = {
  path: "/sys",
  name: 'SysManagement',
  component: Layout,
  redirect: "/sys/org",
  meta: { title: "系统管理", icon: "system" },
  children: [
    {
      path: "org",
      name: "systemOrg",
      component: () => import("@/views/sys/org/org.vue"),
      meta: { title: "组织架构", icon: "el-icon-Discount", hidden: false, permission:[PermissionType.sysAdmin]},
    },
    {
      path: "orguser",
      name: "systemOrgUser",
      component: () => import("@/views/sys/org/orguser.vue"),
      meta: { title: "组织用户", icon: "el-icon-User", hidden: false, permission:[PermissionType.sysAdmin]},
    },
    {
      path: "role",
      name: "systemRole",
      component: () => import("@/views/sys/role/role.vue"),
      meta: { title: "角色管理", icon: "el-icon-Menu", hidden: false, permission:[PermissionType.sysAdmin]},
    },
  ],
}

export default sysRoutes;
